<?php

namespace app\advertisement\controller;
use app\common\controller\PCBase;
use app\common\controller\DBase;
use app\advertisement\logic\MaterialLogic;

class Material extends PCBase
{

    /**
     * @desc   新增素材信息接口
     * @author luckyXiong
     * @date   2025-07-04
     */
    public function add_material(){
        $params              = $this->request->post();
        $admin_id            = $this->getAdminId();
        $params['admin_id']  = $admin_id;
        (new MaterialLogic())->add_material($params);
        return  $this->jsonMessage(200,true,'操作成功!',null);
    }


    /**
     * @desc    获取素材信息列表接口
     * @author  luckyXiong
     * @date    2025-07-04
     */
    public function material_list(){
        $params              = $this->request->post();
        $admin_id            = $this->getAdminId();
        $params['admin_id']  = $admin_id;
        return (new MaterialLogic())->material_list($params);
    }








}